#ifndef BINARY2BASE64_H
#define BINARY2BASE64_H
#include<string>

class binary2Base64
{
public:
    enum zqyBase64Option {
        eBase64Encoding = 0,
        eBase64UrlEncoding = 1,

        eKeepTrailingEquals = 0,
        eOmitTrailingEquals = 2
    };

    binary2Base64();
    //需要自己 free内存
    static unsigned char* fromBase64(const std::string &base64, zqyBase64Option options, int& iSize);
    static std::string toBase64(const unsigned char *pSource, int iSourceCount, zqyBase64Option options);
};

#endif // BINARY2BASE64_H
